package com.cqan.box.dao;

import org.hibernate.criterion.Restrictions;
import org.springframework.stereotype.Repository;

import com.cqan.box.entity.AppBox;
import com.cqan.dao.hibernate.HibernateDao;

@Repository
public class AppBoxDao extends HibernateDao<AppBox, Long> {

	public AppBox getAppBox(String ab, String did) {
		
		return (AppBox) getSession().createCriteria(AppBox.class).add(Restrictions.eq("appid", ab)).add(Restrictions.eq("did", did)).uniqueResult();
	}

}
